//
//  MSUserManager.h
//  FiveDegree
//
//  Created by apple on 2020/1/14.
//  Copyright © 2020 YYB. All rights reserved.
//

#import <Foundation/Foundation.h>
// #import "TheCheckLocationCityModel.h"
#import "userInfoModel.h"

@class TheCheckLocationCityModel;

#define  KNodeTableName  @"KLocalNodeTableListName"

NS_ASSUME_NONNULL_BEGIN

@interface MSUserManager : NSObject

+ (instancetype) sharedManager;
/**连接websocket 有值**/
@property (nonatomic,copy) NSString *client_id;

/**用户信息*/
@property(nonatomic, strong) userInfoModel *userModel;
@property (nonatomic,strong) TheCheckLocationCityModel *checkLocModel;
/**视频会员信息*/
@property(nonatomic, strong) OneUserVipModel *userVipModel;

/**找回账号/账号恢复/私属邮箱-临时记录*/
@property (nonatomic,copy) NSString *reSetAccount;
/**应用是否登录过*/
@property (nonatomic,assign) BOOL isLogined;

/**是否有社交功能*/
@property (nonatomic,assign) BOOL socialized;
/**是否显示过VPN*/
@property (nonatomic,assign) BOOL showedVPN;
/**当前地区是否可以注册*/
@property (nonatomic,assign,readonly) BOOL can_use;


@property (nonatomic,copy) NSString *city_test;
@property (nonatomic,copy) NSString *address_test;
- (void)checkUserLocation:(void(^)(BOOL can_use))locationBlock;

- (void)saveUserInfoModel:(userInfoModel*)userModel;
- (void)saveCheckLocModel:(TheCheckLocationCityModel*)checkLocModel;

- (void)clearAllModel;


@end

NS_ASSUME_NONNULL_END
